// pages/order/order.js

var util = require('/../../utils/utils.js');
Page({

  /**
   * 页面的初始数据
   */
  data: {
    orderList:{
      1:{
        restaurantName: "畅哥麻辣烫",
        state: "订单成功",
        total:0,
        date: "2020-07-14",
        // time: "12:29:12",
        howToDistribute: "商家"
      },
      
  },
    total: 0,
    count:0,
    
},
/**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    console.log(options)
    
   var time = util.formatTime(new Date());  //util未定义？
    this.setData({
     total: options.total,
     count: options.count,
     address:options.address,
     time: time  
  })
  console.log(time)
  },
});